Direct Method for solution of system of equation